Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ignorelist to local exploit suggester datastore options #19739

Conversation

sjanusz-r7
Copy link
Contributor

This PR prevents copying of some datastore options known to cause potential issues in the local exploit suggester.
This fixes a Pro-specific crash.

Verification

  • Start msfconsole
  • get a session, e.g. using thinkphp_rce
  • run local_exploit_suggester against the session
  • Verify it runs as expected
  • Verify that following this workflow in Pro works as expected and does not crash anymore

@@ -110,8 +110,9 @@ def valid_incompatibility_reasons(mod, verify_reasons)
end

def set_module_options(mod)
ignore_list = ['ACTION', 'TARGET'].freeze
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Context: The user setting TARGET to a value globally or locally in the datastore would unintentionally be assigned to the local exploit module that was being tested against

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACTION isn't required with the current implementations, but just future-proofing for a future potential bug if it was wired up

@adfoster-r7 adfoster-r7 merged commit 065cee8 into rapid7:master Dec 16, 2024
36 checks passed
@adfoster-r7
Copy link
Contributor

Release Notes

Fixes an issue with the post/multi/recon/local_exploit_suggester module which would crash if a TARGET value was set

@adfoster-r7 adfoster-r7 added the rn-fix release notes fix label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn-fix release notes fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants